<template>
  <div>
    <h1>Hello</h1>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from "@vue/runtime-core";
import { getBookByParams } from "./api/book";
import { getDate } from "./api/date";

const getData = async () => {
  const response = await getBookByParams({ params: { id: 1 } });
  console.log(response);
};

onMounted(() => {
  getData();
});
</script>

<style scoped>
</style>